SVM: handle page faults in emulated instruction fetches
authorKeir Fraser <keir.fraser@citrix.com>
Mon, 17 Mar 2008 11:39:50 +0000 (11:39 +0000)
committerKeir Fraser <keir.fraser@citrix.com>
Mon, 17 Mar 2008 11:39:50 +0000 (11:39 +0000)
commit3bba8a3d23f62b52184bb720cdfabbcabf738945
tree835bac5eca81e18ebd00f03e2a4d15afe6ebec3a
parent70ee3b38284cb6bdf320f43ccb1bd33d4315b26f
SVM: handle page faults in emulated instruction fetches

Deal with failures in hvm_copy_from_guest_virt when fetching
instructions in the various SVM emulation paths.  Since we know that
the instruction was fetchable by the hardware, we can usually just
return from the VMEXIT and try again; whatever caused us to fail will
cause the hardware to fail next time and we'll get the correct exit
code.

Signed-off-by: Tim Deegan <Tim.Deegan@citrix.com>
xen/arch/x86/hvm/svm/emulate.c
xen/arch/x86/hvm/svm/svm.c